home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-01-12 | 754 b | 16 lines | [TEXT/ToyS] |
- property theDialog : {bounds:null, name:"?", style:movable dialog, contents:[¬
- {class:push button, bounds:[190, 65, 250, 85], name:"OK", enabled:3}, ¬
- {class:push button, bounds:[110, 65, 170, 85], name:"Cancel"}, ¬
- {class:text field, bounds:[10, 36, 250, 36 + 16], name bounds:¬
- [10, 10, 250, 26], name:"?", value:"?"}] ¬
- }
-
- if bounds of theDialog = null then set bounds of theDialog to dd calc dialog bounds [260, 95]
-
- repeat with i from 1 to 5
- set name of theDialog to "Remember Window Position " & i
- set name of item 3 of contents of theDialog to "Enter item " & i & " of 5:"
- set dlog to dd auto dialog theDialog
- set bounds of theDialog to last item of dlog
- if item 2 of dlog then exit repeat -- If user clicked Cancel then stop
- end repeat